<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
  <!--view层-->
  <div id="app">{{message}}</div>
  <!--viewModel层-->
  <script src="../../js/vue.js"></script>
  <!--model层-->
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: '模板'
      }, methods: {
        test: function (msg) {
          //声明方法
        }
      }, created: function () {
        //生命周期
      }, mounted: function () {
        //生命周期
      }
    })
  </script>
</body>
</html>